<template>
  <div class="body-box" v-loading="load">
      <div style="width:600px">
        <el-form size="small" label-width="100px" label-position="left">
          <el-form-item label="二级跑团收费">
            <el-input placeholder="请输入收费金额" v-model="info.cation_price" type="number"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button class="com-btn" @click="submit()">立即提交</el-button>
          </el-form-item>
        </el-form>
      </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
      info : {},
      load : true
    }
  },
  mounted(){
    this.getData();
  },
  methods:{
    //提交修改
    submit(){
      this.load = true;
      this.ajaxs('club/saveParam',{
        data : this.info,
        success:(res) =>{
          this.load = false;
          this.toast(res.code,res.msg);
        }
      });
    },
    //获取二级跑团信息
    getData(){
      this.ajaxs('club/relationParam',{
        success:(res) => {
          this.load = false;
          this.info = res.msg;
        }
      });
    },
  }
}
</script>

<style>

</style>